<?php
include_once ($_SERVER['DOCUMENT_ROOT'].'/global.php');
$sql="
Update
  user
set
  Phone = '{$_POST['Phone']}',
  IdNumber = '{$_POST['IdNumber']}',
  BankName = '{$_POST['BankName']}',
  BankIdNumber = '{$_POST['BankIdNumber']}'
where
  id = {$_POST['CurPersonId']}
";
$mysqli->query($sql);
echo json_encode('1');
exit;
?>
